﻿<Window x:Class="VRacer.Client.Controls.AppException"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="{Binding Title, FallbackValue='Problem with Vector Racer', StringFormat='{}Problem with Vector Racer - {0}'}"
        Width="400" ShowInTaskbar="False" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Topmost="True">
    <StackPanel Margin="5">
        <Label FontWeight="Bold" FontSize="14">Problem with Vector Racer.</Label>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>

            <Image Source="../Icons/logo-2.png" Width="64" />
            <TextBlock Grid.Column="1" Margin="5" TextWrapping="Wrap" Text="{Binding Message, FallbackValue='{}This is a general problem we didn\'t anticipate. If the problem keeps happening, please let us know so we can help.'}" />
        </Grid>
        <Expander Header="Details" IsExpanded="False">
            <StackPanel Margin="5">
                <TextBlock Text="{Binding Code, StringFormat='{}Code: {0}'}" />
                <TextBlock TextWrapping="Wrap" Margin="5" Text="{Binding Details}" />
            </StackPanel>
        </Expander>
        <Button HorizontalAlignment="Right" Padding="15,0,15,0" Click="Button_Click">Close</Button>
    </StackPanel>
</Window>
